}
static gboolean
-gtk_css_widget_node_should_create_transitions (GtkCssWidgetNode *widget_node,
- GtkCssStyle *previous_style)
+should_create_transitions (GtkCssChange change)
{
- GtkWidget *widget;
-
- widget = widget_node->widget;
- if (widget == NULL)
- return FALSE;
-
- if (!gtk_widget_get_mapped (widget))
- return FALSE;
-
- if (previous_style == gtk_css_static_style_get_default ())
- return FALSE;
-
- return TRUE;
+ return (change & GTK_CSS_CHANGE_ANIMATIONS) == 0;
}
static gboolean
parent ? gtk_css_node_get_style (parent) : NULL,
timestamp,
gtk_css_node_get_style_provider (node),
- gtk_css_widget_node_should_create_transitions (widget_node, style) ? style : NULL);
+ should_create_transitions (change) ? style : NULL);
g_object_unref (new_static_style);
}